﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using vantexe_model;

namespace vantexe_controller
{
    public class PersonController
    {
        public List<Person> CustomerList;

        private Person getPersonByIdFromDB(int id)
        {
            //My SQL give a person with ID = id //select * from person where id = id
            Person p = new Person() { ID = 12, FirstName = "Yaseen", LastName = "Mohammed" };
            return p;
        }

        public Person GetPersonById(int id)
        {
            //DB fun
            Person p = getPersonByIdFromDB(id);
            return p;
        }
    }
}
